<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="hello.js"></script>
<script type="text/javascript">
function check(){
	if($("#t1").val().length==0||$("#p1").val().length==0){
		$("#d1").text("PLZ FILL BOTH FIELDS");
		 $('#b1').attr("disabled", true);

	}
	else{
		 $('#b1').attr("disabled",false);

		
	}
}
</script>
</head>
<body align="center">
<form action="Login.action" method="post">
<h2>LOGIN FORM</h2>
<s:actionerror/>
<table align="center">
<tr><td><b>Login:</td><td><input id="t1" type="text" name="username" onblur="check()"/></td></tr>
<tr><td><b>Password:</td><td><input id="p1" type="password" name="password"/ onblur="check()"></td></tr>
<tr><td colspan="2"><div id="d1"></div></td></tr>
<tr><td></td></tr>
<tr><td colspan="2" align="center"><input type="submit" id="b1" value="LOG IN"/></td></tr>
</table>
</form>

</body>
</html>